package cn.iocoder.yudao.module.pplan.controller.admin.shiftrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 排班管理新增/修改 Request VO")
@Data
public class ShiftRecordSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3886")
    private Long id;

    @Schema(description = "排班日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate shiftDate;

    @Schema(description = "人员列表")
    private List<ShiftUserSimpleReqVO> shiftUsers;

}